//###############
//FILE : NameServerRequest.java
//WRITER : Daniel Lowengrub, daniel_i_l, 320687098
//EXERCISE : oop ex3 2011
//DESCRIPTION:
//See below
//###############
package oop.ex3.nameserver;


import oop.ex3.communication.Request;
import oop.ex3.protocol.sessions.NameEndSession;
import oop.ex3.protocol.sessions.Session;

/**
 * This is a specified request that handles requests made to a nameserver.
 * @author daniel
 */
public abstract class NameServerRequest extends Request{
    protected NameServerDatabase _nameServerDb;

    protected static NameEndSession _endSession = new NameEndSession();

    /**
     * Create a new nameserver request handler. It's initialized with a nameserver database
     * which is used for updating the NS state and the opening session which is passed to the Request
     * super class.
     * @param nsDb The nameserver database.
     * @param openingSession The opening session.
     */
    public NameServerRequest(NameServerDatabase nsDb, Session openingSession) {
        super(openingSession);
        _nameServerDb = nsDb;
    }
}
